package com.machine.filling.base;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by sperfan on 2017/11/24.
 *
 * @描述: fragment 基类
 */

public abstract class SimpleBaseFragment extends Fragment implements IView{
    View contentView;
    protected Activity mActivity;
    protected Intent mIntent;

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        mActivity = getActivity();
        mIntent = mActivity.getIntent();
        contentView = initViews();
        initDatas();
        return contentView;
    }

}
